package com.atguigu.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommResult<T> {
    // 404  not_found

    private  Integer code;
    private String message;
    private T data;

  public CommResult(Integer code,String message )  {   //因为data可能是两个参数的所以定义一个两个参数的构造方法

      this(code,message,null);
  }




}
